package test3.A1_3;

//代表课程的类
class Subject {
    private String name; // 课程名称
    private Instructor instructor; // 课程的指导教师

    //构造函数
    public Subject(String name) {
        this.name = name;
    }

    //设置课程的指导教师
    public void setInstructor(Instructor instructor) {
        this.instructor = instructor;
    }

    //获取课程的指导教师
    public Instructor getInstructor() {
        return instructor;
    }
}
